<?php

namespace app\model;

use think\Model;

class UserToRoom extends Model
{

    static function joinOneRoom($param){
        $time=time();
        $data['rid']=$param['rid'];
        $data['uid']=$param['uid'];
        $data['addtime']=$time;
        return self::create($data);
    }
    
}
